-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added benchmarking capabilities for the mongodb benchmark #23
base: main
Are you sure you want to change the base?
Conversation
@dataclass(frozen=True) | ||
class BenchmarkConfig(ConfigBase): | ||
|
||
recordCount: int = 1000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use lower snake case instead of camel case, i.e. record_count
note: Pascal case is fine for class names as you have done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, after you make the above fix, please run make defaults
to generate a new defaults.yaml
and then commit those changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, it does not look like you use these configuration options at all anywhere
Please use them to configure the mongodb benchmark
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make defaults is consistently failing with this:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/anish/KernMLOps/python/kernmlops/__main__.py", line 3, in <module>
import cli
File "/home/anish/KernMLOps/python/kernmlops/cli/__init__.py", line 7, in <module>
import data_collection
File "/home/anish/KernMLOps/python/kernmlops/data_collection/__init__.py", line 4, in <module>
from data_collection import bpf_instrumentation as bpf
File "/home/anish/KernMLOps/python/kernmlops/data_collection/bpf_instrumentation/__init__.py", line 5, in <module>
from data_collection.bpf_instrumentation.bpf_hook import BPFProgram
File "/home/anish/KernMLOps/python/kernmlops/data_collection/bpf_instrumentation/bpf_hook.py", line 4, in <module>
from data_schema import CollectionTable
File "/home/anish/KernMLOps/python/kernmlops/data_schema/__init__.py", line 7, in <module>
from data_schema import perf
File "/home/anish/KernMLOps/python/kernmlops/data_schema/perf/__init__.py", line 3, in <module>
from data_schema.perf.perf_schema import (
File "/home/anish/KernMLOps/python/kernmlops/data_schema/perf/perf_schema.py", line 3, in <module>
from typing import Protocol, override
ImportError: cannot import name 'override' from 'typing' (/usr/lib/python3.10/typing.py)
Please also run |
We should probably meet sometime early next week to discuss what all of these scripts do and why they are needed in the codebase |
Run